#include "plugin.h"

void Plugin::UsFunction()
{
    //纯虚函数需要重载实现
}

void Plugin::Init()
{
    m_pTimer->start(1000);
    connect(m_pTimer,SIGNAL(timeout()),this,SLOT(UsPrivateSlot()));
    connect(m_pTimer,SIGNAL(timeout()),this,SLOT(UsPublicSlot()));
}

void Plugin::UsPublicSlot()
{
   qDebug()<<"this public slots output";
   emit UsSigSend("Hello this Plugin message");
}

void Plugin::UsPrivateSlot()
{
    qDebug()<<"this priavate slots output";
    emit UsSigVoid();
}
